﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class PublicHelper
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class PublicHelper
   ">
    <meta name="generator" content="docfx 2.48.0.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="../../apicatlog/toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="WQLAPI.Helper.PublicHelper">
  
  
  <h1 id="WQLAPI_Helper_PublicHelper" data-uid="WQLAPI.Helper.PublicHelper" class="text-break">Class PublicHelper
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">PublicHelper</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="WQLAPI.Helper.html">WQLAPI.Helper</a></h6>
  <h6><strong>Assembly</strong>: WQLAPI.dll</h6>
  <h5 id="WQLAPI_Helper_PublicHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PublicHelper</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="WQLAPI_Helper_PublicHelper_AutoStart_" data-uid="WQLAPI.Helper.PublicHelper.AutoStart*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_AutoStart_System_String_System_Boolean_" data-uid="WQLAPI.Helper.PublicHelper.AutoStart(System.String,System.Boolean)">AutoStart(String, Boolean)</h4>
  <div class="markdown level1 summary"><p>自动启动</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void AutoStart(string appPath, bool isAuto = true)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">appPath</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">isAuto</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_CreateCSV_" data-uid="WQLAPI.Helper.PublicHelper.CreateCSV*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_CreateCSV__1_System_String_System_Collections_Generic_List_System_String____" data-uid="WQLAPI.Helper.PublicHelper.CreateCSV``1(System.String,System.Collections.Generic.List{System.String}[])">CreateCSV&lt;T&gt;(String, List&lt;String&gt;[])</h4>
  <div class="markdown level1 summary"><p>创建csv文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool CreateCSV&lt;T&gt;(string filePath, List&lt;string&gt;[] Datas)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">filePath</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.String</span>&gt;[]</td>
        <td><span class="parametername">Datas</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_CreatePath_" data-uid="WQLAPI.Helper.PublicHelper.CreatePath*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_CreatePath_System_String_" data-uid="WQLAPI.Helper.PublicHelper.CreatePath(System.String)">CreatePath(String)</h4>
  <div class="markdown level1 summary"><p>;
创建路径</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string CreatePath(string filePath)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">filePath</span></td>
        <td><p>路径地址</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_CreateXml_" data-uid="WQLAPI.Helper.PublicHelper.CreateXml*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_CreateXml__1_System_String___0_" data-uid="WQLAPI.Helper.PublicHelper.CreateXml``1(System.String,``0)">CreateXml&lt;T&gt;(String, T)</h4>
  <div class="markdown level1 summary"><p>创建xml文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool CreateXml&lt;T&gt;(string filePath, T xmlObject)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">filePath</span></td>
        <td><p>路径</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">xmlObject</span></td>
        <td><p>对象</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>对象类型</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_Cut_" data-uid="WQLAPI.Helper.PublicHelper.Cut*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_Cut_System_Object_System_Boolean_" data-uid="WQLAPI.Helper.PublicHelper.Cut(System.Object,System.Boolean)">Cut(Object, Boolean)</h4>
  <div class="markdown level1 summary"><p>剪切文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void Cut(object data, bool isSave)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Object</span></td>
        <td><span class="parametername">data</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">isSave</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_LogToFile_" data-uid="WQLAPI.Helper.PublicHelper.LogToFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_LogToFile_System_String_System_String_" data-uid="WQLAPI.Helper.PublicHelper.LogToFile(System.String,System.String)">LogToFile(String, String)</h4>
  <div class="markdown level1 summary"><p>记录日志到文件跟目录</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void LogToFile(string msg, string fileName = null)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">msg</span></td>
        <td><p>保存内容</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">fileName</span></td>
        <td><p>保存路径</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_LogToListbox_" data-uid="WQLAPI.Helper.PublicHelper.LogToListbox*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_LogToListbox_System_Windows_Forms_ListBox_System_String_" data-uid="WQLAPI.Helper.PublicHelper.LogToListbox(System.Windows.Forms.ListBox,System.String)">LogToListbox(ListBox, String)</h4>
  <div class="markdown level1 summary"><p>记录日志到listbox</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool LogToListbox(ListBox listBox, string msg)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Windows.Forms.ListBox</span></td>
        <td><span class="parametername">listBox</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">msg</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_OpenImageFile_" data-uid="WQLAPI.Helper.PublicHelper.OpenImageFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_OpenImageFile" data-uid="WQLAPI.Helper.PublicHelper.OpenImageFile">OpenImageFile()</h4>
  <div class="markdown level1 summary"><p>获取选择图片文件路径</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string OpenImageFile()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>文件地址名称</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_ReadJsonFile_" data-uid="WQLAPI.Helper.PublicHelper.ReadJsonFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_ReadJsonFile__1_System_String_" data-uid="WQLAPI.Helper.PublicHelper.ReadJsonFile``1(System.String)">ReadJsonFile&lt;T&gt;(String)</h4>
  <div class="markdown level1 summary"><p>读取json对象</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T ReadJsonFile&lt;T&gt;(string fileName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">fileName</span></td>
        <td><p>路径</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>对象类型</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_ReadJsonFile_" data-uid="WQLAPI.Helper.PublicHelper.ReadJsonFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_ReadJsonFile__1_System_String_Newtonsoft_Json_JsonSerializerSettings_" data-uid="WQLAPI.Helper.PublicHelper.ReadJsonFile``1(System.String,Newtonsoft.Json.JsonSerializerSettings)">ReadJsonFile&lt;T&gt;(String, JsonSerializerSettings)</h4>
  <div class="markdown level1 summary"><p>读取json对象</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T ReadJsonFile&lt;T&gt;(string fileName, JsonSerializerSettings settings)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">fileName</span></td>
        <td><p>路径</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">Newtonsoft.Json.JsonSerializerSettings</span></td>
        <td><span class="parametername">settings</span></td>
        <td><p>json设置</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>对象类型</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_ReadXml_" data-uid="WQLAPI.Helper.PublicHelper.ReadXml*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_ReadXml__1_System_String_" data-uid="WQLAPI.Helper.PublicHelper.ReadXml``1(System.String)">ReadXml&lt;T&gt;(String)</h4>
  <div class="markdown level1 summary"><p>读取xml文件到对象</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T ReadXml&lt;T&gt;(string filePath)

    where T : class</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">filePath</span></td>
        <td><p>路径</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>对象类型</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_SaveImageFile_" data-uid="WQLAPI.Helper.PublicHelper.SaveImageFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_SaveImageFile" data-uid="WQLAPI.Helper.PublicHelper.SaveImageFile">SaveImageFile()</h4>
  <div class="markdown level1 summary"><p>获取保存图片文件路径</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string SaveImageFile()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_SaveJsonFile_" data-uid="WQLAPI.Helper.PublicHelper.SaveJsonFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_SaveJsonFile__1_System_String___0_" data-uid="WQLAPI.Helper.PublicHelper.SaveJsonFile``1(System.String,``0)">SaveJsonFile&lt;T&gt;(String, T)</h4>
  <div class="markdown level1 summary"><p>保存json文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SaveJsonFile&lt;T&gt;(string fileName, T msg)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">fileName</span></td>
        <td><p>路径</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">msg</span></td>
        <td><p>对象</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>对象类型</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_SaveJsonFile_" data-uid="WQLAPI.Helper.PublicHelper.SaveJsonFile*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_SaveJsonFile__1_System_String___0_Newtonsoft_Json_JsonSerializerSettings_" data-uid="WQLAPI.Helper.PublicHelper.SaveJsonFile``1(System.String,``0,Newtonsoft.Json.JsonSerializerSettings)">SaveJsonFile&lt;T&gt;(String, T, JsonSerializerSettings)</h4>
  <div class="markdown level1 summary"><p>保存json文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SaveJsonFile&lt;T&gt;(string fileName, T msg, JsonSerializerSettings settings)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">fileName</span></td>
        <td><p>路径</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">msg</span></td>
        <td><p>对象</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">Newtonsoft.Json.JsonSerializerSettings</span></td>
        <td><span class="parametername">settings</span></td>
        <td><p>json设置</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>对象类型</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_TaskRunning_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_TaskRunning_System_Func_System_Boolean__System_Threading_CancellationToken_System_Int32_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning(System.Func{System.Boolean},System.Threading.CancellationToken,System.Int32)">TaskRunning(Func&lt;Boolean&gt;, CancellationToken, Int32)</h4>
  <div class="markdown level1 summary"><p>带超时的异步循环执行任务直到task为true或任务取消</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Task&lt;bool&gt; TaskRunning(Func&lt;bool&gt; func, CancellationToken token, int timeout = 1000)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
        <td><span class="parametername">func</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Threading.CancellationToken</span></td>
        <td><span class="parametername">token</span></td>
        <td><p>超时时长</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">timeout</span></td>
        <td><p>超时时长,如果为0则一直堵塞等待知道返回true或取消</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
        <td><p>超时返回false, 返回await task</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_TaskRunning_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_TaskRunning_System_Func_System_Threading_Tasks_Task_System_Boolean___System_Threading_CancellationToken_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning(System.Func{System.Threading.Tasks.Task{System.Boolean}},System.Threading.CancellationToken)">TaskRunning(Func&lt;Task&lt;Boolean&gt;&gt;, CancellationToken)</h4>
  <div class="markdown level1 summary"><p>异步循环执行任务直到task为true或任务取消</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Task&lt;bool&gt; TaskRunning(Func&lt;Task&lt;bool&gt;&gt; task, CancellationToken token)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Boolean</span>&gt;&gt;</td>
        <td><span class="parametername">task</span></td>
        <td><p>任务委托</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Threading.CancellationToken</span></td>
        <td><span class="parametername">token</span></td>
        <td><p>取消token</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_TaskRunning_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_TaskRunning_System_Func_System_Threading_Tasks_Task_System_Boolean___System_Threading_CancellationToken_System_Int32_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning(System.Func{System.Threading.Tasks.Task{System.Boolean}},System.Threading.CancellationToken,System.Int32)">TaskRunning(Func&lt;Task&lt;Boolean&gt;&gt;, CancellationToken, Int32)</h4>
  <div class="markdown level1 summary"><p>带超时的异步循环执行任务直到task为true或任务取消</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Task&lt;bool&gt; TaskRunning(Func&lt;Task&lt;bool&gt;&gt; task, CancellationToken token, int timeout = 1000)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Boolean</span>&gt;&gt;</td>
        <td><span class="parametername">task</span></td>
        <td><p>执行委托</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Threading.CancellationToken</span></td>
        <td><span class="parametername">token</span></td>
        <td><p>超时时长</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">timeout</span></td>
        <td><p>超时时长,如果为0则一直堵塞等待知道返回true或取消</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
        <td><p>超时返回false, 返回await task</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_TaskRunning_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_TaskRunning_System_Func_System_Threading_Tasks_Task__System_Threading_CancellationToken_System_Action_" data-uid="WQLAPI.Helper.PublicHelper.TaskRunning(System.Func{System.Threading.Tasks.Task},System.Threading.CancellationToken,System.Action)">TaskRunning(Func&lt;Task&gt;, CancellationToken, Action)</h4>
  <div class="markdown level1 summary"><p>带取消回调的task</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Task&lt;bool&gt; TaskRunning(Func&lt;Task&gt; task, CancellationToken token, Action cacleCallBack = null)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Threading.Tasks.Task</span>&gt;</td>
        <td><span class="parametername">task</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Threading.CancellationToken</span></td>
        <td><span class="parametername">token</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Action</span></td>
        <td><span class="parametername">cacleCallBack</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_PublicHelper_TaskWaitAsync_" data-uid="WQLAPI.Helper.PublicHelper.TaskWaitAsync*"></a>
  <h4 id="WQLAPI_Helper_PublicHelper_TaskWaitAsync__1_System_Func_System_Threading_CancellationToken_System_Threading_Tasks_Task___0___System_Threading_CancellationToken_System_Int32_" data-uid="WQLAPI.Helper.PublicHelper.TaskWaitAsync``1(System.Func{System.Threading.CancellationToken,System.Threading.Tasks.Task{``0}},System.Threading.CancellationToken,System.Int32)">TaskWaitAsync&lt;TResult&gt;(Func&lt;CancellationToken, Task&lt;TResult&gt;&gt;, CancellationToken, Int32)</h4>
  <div class="markdown level1 summary"><p>超时任务停止</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Task&lt;TResult&gt; TaskWaitAsync&lt;TResult&gt;(Func&lt;CancellationToken, Task&lt;TResult&gt;&gt; task, CancellationToken token, int timeout = 1000)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Threading.CancellationToken</span>, <span class="xref">System.Threading.Tasks.Task</span>&lt;TResult&gt;&gt;</td>
        <td><span class="parametername">task</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Threading.CancellationToken</span></td>
        <td><span class="parametername">token</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">timeout</span></td>
        <td><p>超时时长，为0则一直执行</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Threading.Tasks.Task</span>&lt;TResult&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TResult</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="WQLAPI.Extensions.PublictExtension.html#WQLAPI_Extensions_PublictExtension_DeepClone__1___0_">PublictExtension.DeepClone&lt;T&gt;(T)</a>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
